package com.cn.mapper.dao.db1.admin;


import com.cn.bean.pojo.bc.Button;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface AdminButtonDao {
    List<Button>selectAdminButtonRoleIdMenuAll(@Param("roleId") int roleId);
    List<Button>selectAdminButtonRoleIdMenu(@Param("roleId") int roleId);

    List<Button> selectAdminButton(@Param("buttonId") String buttonId, @Param("buttonFunction") String buttonFunction, @Param("limit") int limit, @Param("page") int page);

    int getAutoId();

    int insertAdminButton(@Param("buttonId") int buttonId,@Param("buttonName") String buttonName,@Param("remark") String remark,@Param("buttonFunction") String buttonFunction,@Param("menuId") int menuId,@Param("operationType") String operationType  );
    int updateAdminButton(@Param("buttonId") int buttonId,@Param("buttonName") String buttonName,@Param("remark") String remark,@Param("buttonFunction") String buttonFunction,@Param("menuId") int menuId,@Param("operationType") String operationType );
    int deleteAdminButton(@Param("buttonId") int buttonId);
    int deleteAdminRoleMenuButton(@Param("roleId")int roleId);
    int insertAdminRoleMenuButton(@Param("roleId")int roleId,@Param("menuId")int menuId,@Param("buttonId")int buttonId);

}
